package editor.ui
{
	import com.bit101.components.FPSMeter;
	import com.bit101.components.Label;
	import com.bit101.components.Panel;
	import com.bit101.components.Window;
	
	import flash.display.DisplayObjectContainer;

	public class TileInfoWindow extends Window
	{
		private var _logicYLabel:Label;
		private var _logicXLabel:Label;
		private var _logicX:Label;
		private var _logicY:Label;
		private var _walkLabel:Label;
		private var _walkable:Label;
		
		private var _fps:FPSMeter;
		
		public function TileInfoWindow(parent:DisplayObjectContainer, xpos:Number = 0, ypos:Number = 0)
		{
			super(parent, xpos, ypos, "Tile Info");
			
			this.setSize(100, 130);
			
			_logicYLabel = new Label(this, 10, 40, "LogicY:");
			
			_logicXLabel = new Label(this, 10, 20, "LogicX:");
			
			_logicX = new Label(this, 60, 20, "-");
			
			_logicY = new Label(this, 60, 40, "-");
			
			_walkLabel = new Label(this, 10, 70, "Walkable:");
			
			_walkable = new Label(this, 60, 70, "true");
			
			_fps = new FPSMeter(this, 10);
		}
		
		public function updateInfo(logicX:int, logicY:int, walkable:Boolean):void
		{
			_logicX.text = logicX.toString();
			_logicY.text = logicY.toString();
			_walkable.text = walkable.toString();
		}
		//
	}
}
